import matplotlib.pyplot as plt
import numpy as np
plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False

labels = ['A','B','C','D','E']
data = [np.random.normal(0, std, 100) for std in range(1, 6)]

plt.figure(figsize=(10, 6))
plt.violinplot(data, showmedians=True,
               showmeans=True,
               vert=False)

plt.title('小提琴图')
plt.grid(True, ls='-', alpha=0.5)
plt.show()